package com.yaoq.proxy.interceptor;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**
 * @ClassName PackageWork
 * @Description TODO
 * @Author yaoqiang
 * @Date 2020/9/2 11:38
 * @Version 1.0
 */
public class PackageWork implements InvocationHandler {

    private Object yao;


    public void setYao(Object yao) {
        this.yao = yao;
    }


    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        ExtraWork.findHouse();
        method.invoke(yao, args);
        ExtraWork.other();
        return null;

    }
}
